<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/white/common/common.jsp"%>
<%@include file="/white/common/taglibs.jsp"%>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">

<html>
<head>
<script type="text/javascript">
     function JFreeChart(){
   			var searchForm=document.getElementById("searchForm");
            searchForm.target="";
            searchForm.action='nspLoggerCountJFreeChartAction!countNspLoggerJFreeChartQuery.action';         
            searchForm.submit();
            
            }   
             
           function submitForm(){
            var searchForm=document.getElementById("searchForm");
            searchForm.submit();
        }
        
        function notAllowedLockSelf(id){           
            var searchForm=document.getElementById("searchForm");
            searchForm.action="userAction-"+id+"!lock.action";
            searchForm.submit();            
        }
        
        function validateModify(){        	
        	var check = document.getElementsByName("selectedIds");
        	var a = 0;
            var id;
           
            for(var i=0;i <check.length;i++){
                if(check[i].checked==true){
                    a++;
                    id = check[i].value;
                }
            }
            
            if(a == 1){            	
            	var searchForm=document.getElementById("searchForm");
            	searchForm.action="nspLoggerAction-"+id+"!toEdit.action";
            	searchForm.submit();
                return true;
            }else{
                alert("请选择一条记录");
                return false;
            }
        }        
        
        function validateDelete(){
            var check=document.getElementsByName("selectedIds");
            var a=false;
            for(var i=0;i <check.length;i++){
                if(check[i].checked==true){
                    a=true;
                    break;
                }
            }
            if(a){
                return confirm('你确定所选择？');
            }else{
                alert("请先择你要删除的内容!!");
                return false;
            }
        }

        function doDelete(){
            var searchForm=document.getElementById("searchForm");
            searchForm.action='nspLoggerAction!delete.action';
            searchForm.submit();
            return true;
        }
        
        function displayResult(){
            var result = "<s:property value='result'/>";
            if(result != null && result != ""){
                alert(result);
            }
        }    
       
           
        
    </script>
</head>
<body onload="displayResult()">
	<s:form method="post"
		action="nspLoggerCountJFreeChartAction!countNspLoggrJFreeChartQuery.action"
		theme="simple" id="searchForm">
		<div id="div_title">
			<h3>NSP日志数据统计图</h3>
			<div id="div_search">
				<table>
					<tr>
						<!-- 查询条件 -->
						<td width="80" align="right">
							请求时间:
							<input type="hidden" name="query_requestType_seach" value="${ query_requestType_seach}">
						</td>
						<td><s:textfield id="query_requestTime"
								name="query_requestTime" label="日期"
								onfocus="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd', minDate:'1900-01-01',maxDate:''})"></s:textfield>
							- <s:textfield id="query_requestTime_end"
								name="query_requestTime_end" label="日期"
								onfocus="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd', minDate:'1900-01-01',maxDate:''})"></s:textfield>
						</td>

						<td width="80" align="right">
								<authz:authorize ifAnyGranted="OMC_NSP_LOG_COUNT">
									<input type="button" value="搜索" onClick="JFreeChart();"
									Class="submit_search" />
								</authz:authorize>
							</td>
					</tr>
				</table>
			</div>
		</div>
 		<div id="JFreeChart">
			<img alt="" src="<s:property value="JFreeChartshow"/>">
		</div> 
	</s:form>
</body>
</html>
